home *** CD-ROM | disk | FTP | other *** search
- #include "ray.h"
- #include "globals.h"
- #include "prevarr.h"
- #include "scrconf.h"
-
- BOOL prev_loaded=FALSE;
-
- void Setup_Prev_Arrays() {
- Clear_Prev_Arrays();
- prev_colors=(PUCHAR)NewPtr(Get_Phys_Screen_Width() * sizeof (UCHAR));
- win_tops=(PSHORT)NewPtr(Get_Phys_Screen_Width() * sizeof(short));
- win_bottoms=(PSHORT)NewPtr(Get_Phys_Screen_Width() * sizeof(short));
- prev_loaded=TRUE;
- }
-
- void Clear_Prev_Arrays() {
- if (prev_loaded) {
- DelPtr(prev_colors);
- DelPtr(win_tops);
- DelPtr(win_bottoms);
- }
- }
-
-